<?php

class buildingimages extends MX_Controller
{
    function __construct() {
        parent::__construct();
        $this->load->model('buildingimage');
    }
    
    function delete($id)
    {
        $this->buildingimage->delete($id);    
    }
    
    function show($id,$row=0)
    {
        $images_arr = $this->buildingimage->get_building_images($id,$row,1);
        $data['images'] = $images_arr;
        $this->load->view('buidingimages_show',$data);
    }
    
}
?>
